<!DOCTYPE html>
<html>
<body style="background:url('images/benrenliuyan.jpg') no-repeat;">
<!--  -->
<!--  -->
<form action="xiugai.php" method="post">
��Ҫ�޸ĵ����Եķ���ʱ��: <input type="text" name="time"><br>
��Ҫ�ĳɣ�<input type="text" name="neirong2"><br>
<input type="submit" value="�޸�">
</form>
<form action="shanchu.php" method="post">
��Ҫɾ�������Եķ���ʱ��: <input type="text" name="time"><br>
<input type="submit" value="ɾ��">
</form>
<?php
session_start();
echo "��ӭ����" . $_SESSION['user'] . "<br>";
$con = mysql_connect("localhost","root","id");
if (!$con)
{
    die('Could not connect: ' . mysql_error());
}

mysql_select_db("my_db", $con);

$result = mysql_query("SELECT * FROM liuyan
    WHERE id='$_SESSION[user]' ORDER BY time DESC");

echo "<table border='1'>
<tr>
<th>�û�</th>
<th>����ʱ��</th>
<th>����</th>
</tr>";

while($row = $result->fetch_assoc())
{
    echo "<tr>";
    echo "<td>" . $row['id'] . "</td>";
    echo "<td>" . $row['time'] . "</td>";
    echo "<td>" . $row['neirong'] . "</td>";
    echo "</tr>";
}
echo "</table>";
$link1 = 'homepage.php';
echo "<a href='{$link1}' title=''>���ظ�����ҳ</a>";

?>
<!-- up is for showing liuyans. -->
</body>
</html>
